<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  红包设置 - <@s.m "global.edit"/></div>
	<form class="ropt" action="v_listCoupon.do">
	<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<@p.form id="jvForm" action="v_update.do" labelWidth="12">
<@p.hidden name="id" value=redPacket.id/>
<@p.text colspan="1" width="50" label="红包名称" name="name" value=redPacket.name value=redPacket.name  required="true" class="required" maxlength="100"/>
<@p.select colspan="1" width="50" label="商家名称" name="shopId" value=shopId value=shopId  list=listShop listKey="id" listValue="shopName" class="required" required="true"/><@p.tr/>
<@p.select colspan="1" width="50" label="优惠券" name="couponId" value=couponId value=couponId  list=listCoupon listKey="id" listValue="couponName" class="required" required="true"/>
<@p.text colspan="1" width="50" label="数量" name="num" value=redPacket.num value=redPacket.num  required="true" class="required" maxlength="8"/><@p.tr/>
<@p.text width="50" colspan="2" label="抢红包比例" name="probability" value=redPacket.probability maxlength="2" class="required"  required="true" help="%"/><@p.tr/>
<@p.text width="50" colspan="1" label="开始时间" name="startDate" value=redPacket.startTimeStr value=redPacket.startTimeStr  required="true" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" maxlength="255"/>
<@p.text width="50" colspan="1" label="截止时间" name="endDate" value=redPacket.endTimeStr value=redPacket.endTimeStr  required="true" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" maxlength="255"/><@p.tr/>

<@p.td colspan="2">
	<@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>